package com.ym521.demo.view

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.ym521.demo.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val viewbind = ActivityMainBinding.inflate(layoutInflater)
        setContentView(viewbind.root)

        viewbind.tvBtn.setOnClickListener {
            startActivity(Intent(this, MainActivity2::class.java))
        }
    }
}